import promptType from './promptType/index'
import audio from "./audio/index";
import openFile from "./openFile/audio";
import drag from "./drag/index";
import system from "./system/index";
import tool from "./utils/index";
//全部注册到api中
const ipcModules = [promptType, audio,openFile,drag,system,tool]

export function registerAllIpc() {
  //自动遍历注册
  ipcModules.forEach((module) => {
    // 遍历模块中的每个属性，执行所有函数
    Object.values(module).forEach((method) => {
      if (typeof method === 'function') {
        method() // 执行单个注册函数
      }
    })
  })
}
